{foreach $lists as $key=>$data}
<div class="layui-tabs-item {if $key=='base'}layui-show{/if}">
    {volist name='data' id='vo'}
    <div class="layui-form-item">
        <label class="layui-form-label">{$vo.title}</label>
        <div class="layui-input-block">
            <!--文本框-->
            {if ($vo.fieldtype == 'text')}
            <?php echo libs\Form::text("row[".$vo['name']."]",$vo['value'],$vo['tips']); ?>
            {/if}

            <!--多行文本-->
            {if ($vo.fieldtype == 'textarea')}
            <?php echo libs\Form::textarea("row[".$vo['name']."]",$vo['value'],$vo['tips']); ?>
            {/if}

            <!--单选按钮-->
            {if ($vo.fieldtype == 'radio')}
            <?php echo libs\Form::radio("row[".$vo['name']."]",$vo['value'],$vo['setting']); ?>
            {/if}

            <!--下拉选项-->
            {if ($vo.fieldtype == 'select')}
            <?php echo libs\Form::select("row[".$vo['name']."]",$vo['value'],$vo['setting']); ?>
            {/if}

            <!--水印位置checkbox选择-->
            {if ($vo.fieldtype == 'watermark_position')}
            <div class="layui-input-inline" style="width:100%">
                <input type="radio" name="watermark_position" value="1" title="顶部居左" {if
                       ($vo.value==1)}checked{/if}>
                <input type="radio" name="watermark_position" value="2" title="顶部居中" {if
                       ($vo.value==2)}checked{/if}>
                <input type="radio" name="watermark_position" value="3" title="顶部居右" {if
                       ($vo.value==3)}checked{/if}>
                <input type="radio" name="watermark_position" value="4" title="中部居左" {if
                       ($vo.value==4)}checked{/if}>
                <input type="radio" name="watermark_position" value="5" title="中部居中" {if
                       ($vo.value==5)}checked{/if}>
                <input type="radio" name="watermark_position" value="6" title="中部居右" {if
                       ($vo.value==6)}checked{/if}>
                <input type="radio" name="watermark_position" value="7" title="顶部居左" {if
                       ($vo.value==7)}checked{/if}>
                <input type="radio" name="watermark_position" value="8" title="底部居中" {if
                       ($vo.value==8)}checked{/if}>
                <input type="radio" name="watermark_position" value="9" title="底部居右" {if
                       ($vo.value==9)}checked{/if}>
            </div>

            {/if}

            <!--水印透明度slide选择-->
            {if ($vo.fieldtype == 'slide')}
            <div class="layui-input-inline" style="width:100%;margin:18px 0;">
                <div id="slideWater" class="water-slider"></div>
                <input type="hidden" name="row[{$vo.name}]" id="watermark_touming">
            </div>
            {/if}

            <!--图片上传-->
            {if($vo.fieldtype == 'image')}
            <?php echo libs\Form::image("row[".$vo['name']."]",$vo['value'],$vo['name'].'-select-input'); ?>
            {/if}

            <!--前端模板选择-->
            {if($vo.fieldtype == 'theme')}
            <select name="row[{$vo.name}]">
                {php}$templates = (get_templates());{/php}
                {foreach $templates as $v}
                <option value="{$v}"
                <?php if($vo['value']==$v) echo "selected"; ?>>{$v}</option>
                {/foreach}
            </select>
            {/if}
            <!--富文本编辑器-->
            {if($vo.fieldtype == 'editor')}
            这里调用富文本编辑器
            {/if}


            {if($vo.fieldtype == 'ueditor_icon')}
            <div class="layui-input-block" style="display:block">
                {foreach $ueditor_icon as $key=>$icon}
                {if (in_array($key,$vo['value']))}
                <input type="checkbox" name="row[ueditor_icon][]" value="{$key}" lay-skin="tag" title="{$icon}" checked>
                {else}
                <input type="checkbox" name="row[ueditor_icon][]" value="{$key}" lay-skin="tag" title="{$icon}">
                {/if}
                {/foreach}
            </div>
            {/if}

            <div class="config_name_right">{$vo.name}</div>
        </div>
        <!--后台加密码提示文本-->
        {if ($vo.name == 'admin_url_password')}
        <tip>
            <p>英文字母数字，不能为纯数字</p>
            <p style="color:#e72828">
                设置加密码后必须通过以下地址访问后台,请劳记此地址，为了安全，您也可以定期更换此加密码!</p>
            <p style="color:rgba(236,34,110,0.96)">修改加密码后请退出重新登录后台</p>
            <p>例如：修改为：manager.php，后台登录地址：http://你们域名/manager.php</p>
        </tip>
        {/if}
        {if ($vo.fieldtype == 'radio')/}
        <tip style="margin-left:15px !important;">{$vo.tips}</tip>
        {else /}
        <tip><p>{$vo.tips}</p></tip>
        {/if}
    </div>
    {/volist}
</div>
{/foreach}
